package com.weipai.springboot.module.service;

import com.weipai.springboot.model.Admin;
import com.weipai.springboot.model.AdminLoginRecord;
import com.weipai.springboot.model.Customer;
import com.weipai.springboot.model.api.Response;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/13 09:57
 * <p>
 * 管理员
 */
public interface AdminService {

    //管理员的新增
    Response save(Admin admin);

    //分页查询
    List<Map<String, Object>> selectAllByDel(int del, String search, String sort, String way);

    //查询管理员详情
    Response getAdminById(String id);

    //管理员的修改
    Response update(Admin admin);

    //删除
    Response deleteById(String id);

    //批量删除
    Response batchDeleteById(String[] id);

    Response getCustomerCategoryList();

    Response changeCustomerCategory(String customerId, String customerCategoryId, String type);

    //记录管机员登录日志
    Response saveAdminLoginRecord(AdminLoginRecord adminLoginRecord);

    //管理员的登录记录
    Response getAdminLoginRecordList(Integer page, Integer size, String startTime, String endTime, String draw, String adminLoginName);
}
